package com.feri.gb.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class R {
    private int code;
    private String msg;
    private Object data;
//    成功
    public static R ok(){
        return new R(200,"ok",null);
    }
//    失败
    public static R fail(){
       return new R(400,"file",null);
    }
}
